<template>
    <div class="window_message">
        <el-form :model="windowForm" ref="windowForm" label-width="100px" class="demo-ruleForm">
            <div v-for="(item,index) in windowForm.windowList" :key="index">
                <el-form-item :label="`窗口${index+1}`" prop="title" label-width="150px"></el-form-item>
                <el-form-item label="标题" prop="title">
                    <el-input type="title" v-model="item.title" autocomplete="off"></el-input>
                </el-form-item>
                <el-form-item label="内容" prop="textarea">
                    <el-input type="textarea" v-model="item.text" autocomplete="off"></el-input>
                </el-form-item>
                <el-form-item label="描述" prop="desc">
                    <el-input type="desc" v-model="item.desc" autocomplete="off"></el-input>
                </el-form-item>
            </div>
        </el-form>
    </div>
</template>
<script>
/**
* description: 窗口模块
*/
export default {
    data() {
        return {
            windowForm: {
                windowList: [
                    {title:'11',text:'11',desc:'r'},
                    {title:'22',text:'22',desc:'vv'},
                ]
            }
        }
    },
    methods: {
        submit() {
            return { formData: this.windowForm.windowList}
        }
    }
}
</script>
<style lang="scss" scoped>

</style>